﻿<UserControl x:Class="Abhiruchi_Phase1.UC_HRM_EmpSearch"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid DataContext="{Binding}" Background="#FFF0F3F6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="1200">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="10" />            
        </Grid.ColumnDefinitions>
        <Line   HorizontalAlignment="Stretch" Width="auto"
        Stretch="Uniform" StrokeThickness="5" X1="0" Y1="0" X2="1" Y2="0" Margin="0,74,0,0" VerticalAlignment="Top" Grid.ColumnSpan="5">
            <Shape.Stroke>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="Transparent" Offset="0" />
                    <GradientStop Color="Silver" Offset="1" />
                    <GradientStop Color="Transparent" Offset="1" />
                </LinearGradientBrush>
            </Shape.Stroke>
        </Line>

        <Label Content="Search/Edit Employee" Height="28" HorizontalAlignment="Left" Margin="12,96,0,0" Name="lblHeader" VerticalAlignment="Top" FontStyle="Normal" FontWeight="Bold" Foreground="#FF2554C7" FontSize="12" FontFamily="Segoe UI" Grid.ColumnSpan="2" />
        <Label Content="Employee Type" Height="28" HorizontalAlignment="Left" Margin="18,156,0,0" Name="lblEtype" VerticalAlignment="Top" />
        <Label Content="Employee No" Height="28" HorizontalAlignment="Left" Margin="17,251,0,0" VerticalAlignment="Top" Name="lblEmpNo" />
        <Label Content="Employee Name" Height="28" HorizontalAlignment="Left" Margin="17,210,0,0" Name="lblEmpName" VerticalAlignment="Top" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,212,0,0" Name="txtEName" VerticalAlignment="Top" Width="Auto" Grid.Column="1" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,253,0,0" Name="txtENo" VerticalAlignment="Top" Width="Auto" Grid.Column="1" />
        <ComboBox Height="22" HorizontalAlignment="Stretch" Margin="0,162,0,0" Name="cmbEType" VerticalAlignment="Top" Width="Auto" SelectedIndex="0" Grid.Column="1">
            <ComboBoxItem Content="All Employees" />
            <ComboBoxItem Content="Permanent Employee" />
            <ComboBoxItem Content="Contract Employee" />
        </ComboBox>
        <Button Content="Search"  Height="22" HorizontalAlignment="Left" Margin="0,311,0,0" Name="btnSearch" VerticalAlignment="Top" Width="100" Click="btnSearch_Click" Grid.Column="1"  Foreground="#FF382D2C" />
        <Button Content="Clear Search" Height="22" HorizontalAlignment="Left" Margin="128,311,0,0" Name="btnClrSearch" VerticalAlignment="Top" Width="100" Click="btnClrSearch_Click" Grid.Column="1"  Foreground="#FF382D2C" />
        <Label Content="Available Employee" Height="28" HorizontalAlignment="Left" Margin="22,350,0,0" Name="lbltblHeader" VerticalAlignment="Top" FontWeight="Bold" Foreground="#FF2554C7" FontSize="12" FontFamily="Segoe UI" Grid.ColumnSpan="2" />
        <Label Content="Address(Present)" Height="30" Margin="25,470,6,0" Name="lblCAddress" VerticalAlignment="Top" FontWeight="Normal" Grid.Column="2" Width="104" />
        <Label Content="Mobile (Home)" Height="28" HorizontalAlignment="Left" Margin="25,617,0,0" Name="lblCMbHm" VerticalAlignment="Top" FontWeight="Normal" Grid.Column="2" />
        <Label Content="Mobile (Work)" Height="28" HorizontalAlignment="Left" Margin="25,588,0,0" Name="lblCMbW" VerticalAlignment="Top" FontWeight="Normal" Grid.Column="2" />
        <Label Content="Landline (Work)" Height="28" HorizontalAlignment="Left" Margin="25,647,0,0" Name="lblCLndWk" VerticalAlignment="Top" FontWeight="Normal" Grid.Column="2" />
        <Button Content="View / Edit Complete Details of Employee" Height="22" HorizontalAlignment="Stretch" Margin="1,102,0,0" Name="btnEditEmp" VerticalAlignment="Top" Width="Auto" Click="btnEditEmp_Click" ForceCursor="True" Grid.Column="3" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,592,0,0" Name="lblCMbWRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,652,0,0" Name="lblCLndWkRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <Image Height="185" HorizontalAlignment="Stretch" Margin="7,193,0,0" Name="ShowImg" Stretch="Fill" VerticalAlignment="Top" Width="170" Grid.Column="4" Source="/Abhiruchi_Phase1;component/Images/photoD.png" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,622,0,0" Name="lblCMbHmRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <Label Content="First Name" FontWeight="Normal" Height="28" Margin="25,191,25,0" Name="lblPFname" VerticalAlignment="Top" Width="85" Grid.Column="2" />
        <Label Content="Status" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="25,244,0,0" Name="lblPStatus" VerticalAlignment="Top" Grid.Column="2" />
        <Label Content="Date of Birth" FontWeight="Normal" HorizontalAlignment="Left" Margin="25,218,0,953" Name="lblPDOB" Grid.Column="2" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,221,0,0" Name="lblPDOBRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,250,0,0" Name="lblPStatusRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,193,0,0" Name="lblPFnameRes" VerticalAlignment="Top" Width="Auto" IsReadOnly="True" IsEnabled="True" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <Label Content="Personal Information" FontStyle="Normal" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="12,156,0,0" Name="lblPersonal" VerticalAlignment="Top" Grid.Column="2" Grid.ColumnSpan="2" />
        <Label Content="Date Of Joining" FontWeight="Normal" Height="28" Margin="25,332,0,0" Name="lblODOJ" VerticalAlignment="Top" Grid.Column="2" Width="110" />
        <Label Content="ReportingTo" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="25,388,0,0" Name="lblORepTo" VerticalAlignment="Top" Width="103" Grid.Column="2" />
        <Label Content="Designation" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="25,360,0,0" Name="lblODes" VerticalAlignment="Top" Width="96" Grid.Column="2" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,361,0,0" Name="lblODesRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,393,0,0" Name="lblORepToRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,332,0,0" Name="lblODOJRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <Label Content="Organaizational Information" FontStyle="Normal" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="12,292,0,0" Name="lblOrgInfo" VerticalAlignment="Top" Grid.Column="2" Grid.ColumnSpan="2" />
        <Label Content="Communicational Information" FontStyle="Normal" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="12,430,0,0" Name="lblCommInfo" VerticalAlignment="Top" Grid.Column="2" Grid.ColumnSpan="2" />
        <Label Content="Landline (Home)" FontWeight="Normal" HorizontalAlignment="Left" Margin="25,676,0,497" Name="lblCLndHome" Grid.Column="2" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,681,0,0" Name="lblCLndHomeRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <Label Content="Personal Email" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="25,706,0,0" VerticalAlignment="Top" Name="lblCPEm" Width="110" Grid.Column="2" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,710,0,0" Name="lblCPEmRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <Label Content="Official Email" FontWeight="Normal" Height="28" HorizontalAlignment="Left" Margin="25,733,0,0" Name="lblCOfEm" VerticalAlignment="Top" Width="104" Grid.Column="2" />
        <TextBox Height="22" HorizontalAlignment="Stretch" Margin="0,739,0,0" Name="lblCOfEmRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" ForceCursor="True" Grid.Column="3" Background="#FFF0F3F6" />
        <Button Content="View Photo" Height="22" HorizontalAlignment="Left" Margin="36,0,0,784" Name="btnDispPhoto" VerticalAlignment="Bottom" Width="100"  Click="btnDispPhoto_Click" Grid.Column="4" Foreground="#FF382D2C" FontFamily="Segoe UI" FontSize="12" />
        <telerik:RadGridView  Margin="22,384,134,0" Name="grdEmp" VerticalAlignment="Top" DataContext="{Binding}" RowActivated="radGridView1_RowActivated" IsReadOnly="True" Height="auto" Width="Auto" HorizontalAlignment="Stretch" Grid.ColumnSpan="3" MinColumnWidth="2" MinWidth="0"></telerik:RadGridView>
        <TextBox Height="111" HorizontalAlignment="Stretch" Margin="0,472,0,0" Name="lblCAddressRes" VerticalAlignment="Top" IsReadOnly="True" Width="Auto" Grid.Column="3" Background="#FFF0F3F6" TextWrapping="Wrap" />
        <Image Height="40" HorizontalAlignment="Left" Margin="14,17,0,0" Name="imgEmpSearch" Stretch="Fill" VerticalAlignment="Top" Width="40" Source="/Abhiruchi_Phase1;component/Images/EmpSearch.ico" />
        <Label Content="Employee Search Details" Height="30" HorizontalAlignment="Left" Margin="55,24,0,0" Name="lblEmpHeding" VerticalAlignment="Top" Foreground="#FF666362" FontWeight="Normal" FontFamily="Corbel" FontSize="15" Grid.ColumnSpan="2" />
        <Label Content="Photo" Grid.Column="4" Height="28" HorizontalAlignment="Left" Margin="7,162,0,0" Name="label1" VerticalAlignment="Top" FontStyle="Normal" FontWeight="Bold" Foreground="#FF2554C7" FontSize="12" FontFamily="Segoe UI"/>
        <Image Grid.Column="4" Height="171" HorizontalAlignment="Stretch" Margin="7,472,0,0" Name="imgFamily" Stretch="Fill" VerticalAlignment="Top" Width="170" Source="/Abhiruchi_Phase1;component/Images/family.png" />
        <Button Content="View Photo" Grid.Column="4" Height="22" HorizontalAlignment="Left" Margin="36,650,0,0" Name="btnFamilyView" VerticalAlignment="Top" Width="100" FontSize="12" FontFamily="Segoe UI" Foreground="#FF382D2C" Click="btnFamilyView_Click" />
        <Label Content="Family Photo" Grid.Column="4" Height="28" HorizontalAlignment="Left" Margin="9,430,0,0" Name="label2" VerticalAlignment="Top" FontStyle="Normal" FontWeight="Bold" Foreground="#FF2554C7" FontSize="12" FontFamily="Segoe UI"/>
    </Grid>
</UserControl>
